/*
 This file is part of colorduino_firmware_rigel.

 colorduino_firmware_rigel is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 
 colorduino_firmware_rigel is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with colorduino_firmware_rigel.  If not, see <http://www.gnu.org/licenses/

 ABOUT THE FIRMWARE
 colorduino_firmware_rigel - alternative firmware for colorduino boards produced by ITeadStudio
 Copyright (c) 2011 Vichaya Sidhipong, bsidhipong@gmail.com

*/

#ifndef X86DEBUG_HEADER_H
#define X86DEBUG_HEADER_H

#include <string.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

uint8_t PORTB = 0;
uint8_t PORTC = 0;
uint8_t PORTD = 0;
uint8_t DDRB = 0;
uint8_t DDRC = 0;
uint8_t DDRD = 0;

#define WGM20 0
#define WGM21 1
#define WGM22 3
#define CS20 0
#define CS21 1
#define CS22 2
uint8_t TCCR2A = 0;
uint8_t TCCR2B = 0;

#define AS2 5
uint8_t ASSR = 0;

#define TOIE2 0
#define OCIE2B 2
uint8_t TIMSK2 = 0;
uint8_t TCNT2 = 0;

#define ISR(name) void name(void)
#define cli()
#define sei()
#define delay(x)

typedef void wire_receive_handler_f( int );
typedef void wire_request_handler_f( void );

class WireClass {
public:
    void send( uint8_t byte ) {
    }
    bool available( void ) {
    }
    uint8_t receive( void ) {
    }
    void begin( uint8_t addr ) {
    }
    void onReceive( wire_receive_handler_f handler ) {
    }
    void onRequest( wire_request_handler_f handler ) {
    }
};

WireClass Wire;

int main ( int argc, char *argv[] )
{
    void TIMER2_OVF_vect( void );
    void setup( void );
    setup( );
    TIMER2_OVF_vect( );
}

#endif
/* vim: set noexpandtab tabstop=4 shiftwidth=4 nolist autoindent cindent: */
